<?php

namespace frontend\modules\app\models;

use Yii;
use yii\data\ActiveDataProvider;

/**
 * 帮助数据模型
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class HelpViewSearch extends \common\models\help\Help {

    public function fields() {
        return [
            'id',
            'title',
            'category',
            'cover',
            'content',
            'views',
            'created_at' => function () {
                return date('Y-m-d', $this->created_at);
            }
        ];
    }

}
